﻿@model Ec_System.Models.Web.IndexRecommendData

@{ 
    var adInfo = Ec_System.Facade.Web.AdRecommendFacade.Index_Home_Index;
    var adUrl = Ec_System.Facade.Web.SiteConfigFacade.AdCommendPicURL;
    var imageServerUrl = Ec_System.Facade.Web.SiteConfigFacade.ImageServer;
}

<script type="text/javascript">

            // 这里开始是鼠标移上去弹出图片效果
            var old = new Array();
            var buyercmt;
            function show_goodspic(id, type) {
                if (old[type] != null)
                {
                    if(document.getElementById(type + "b" + old[type]) != null)
                    {
                        document.getElementById(type + "b" + old[type]).style.display = 'none';
                    }
                    if(document.getElementById(type + "s" + old[type]) != null)
                    {
                        document.getElementById(type + "s" + old[type]).style.display = 'block';
                    }
                }
                if(document.getElementById(type + "s" + id) != null)
                {
                    document.getElementById(type + "s" + id).style.display = 'none';
                }
                if(document.getElementById(type + "b" + id) !=null)
                {
                    document.getElementById(type + "b" + id).style.display = 'block';
                    old[type] = id;
                }
            }
</script>



<div class="index_top box_1">
    <div id="slideTxtBox1">
        <div class="hd">
            <span><a href="/Search/PromotionSchedule">限时抢购</a></span>
        </div>
        <div class="bd">
            <ul>
                <dl style="display: list-item; ">

                    @for (int i = 1; i < Model.ScheduleList.Count + 1; i++)
                    {
                        <ul class="clearfix ul_list" id=hot1s@{@i}} onmouseover="show_goodspic(@i,'hot1')">
                            <span>@i</span>
                            <p class="name">
                                <a href="/item/100123" title=""> @Model.ScheduleList[i - 1].ShopProductTitle ...</a>
                            </p>
                            <div class="ren">评论(@Model.ScheduleList[i - 1].EvaluationCount)</div>
                        </ul>

                        <ul class="clearfix ul_box" id=hot1b@{@i} style="DISPLAY: none">
                            <span>@i</span>
                            <li class="img">
                                <a href="/item/@Model.ScheduleList[i - 1].ProductId"><img src="@imageServerUrl/product/6060@{@Model.ScheduleList[i - 1].ImageUrl} "/></a>
                            </li>
                            <li>
                                <a href="/item/@Model.ScheduleList[i -1].ProductId" title="@Model.ScheduleList[i - 1].ShopProductTitle">@Model.ScheduleList[i - 1].ShopProductTitle ...</a><br />
                                <font class="f1">￥@Model.ScheduleList[i -1].PromotionUnitPrice 元</font>
                                <div class="ren">评论(@Model.ScheduleList[i - 1].EvaluationCount)</div>
                            </li>
                        </ul>

                    }
                    

                </dl>
            </ul>
            <script type=text/javascript>onload =function(){show_goodspic(1,'hot1')} ;</script>
        </div>
    </div>
    <script type="text/javascript">
                jQuery("#slideTxtBox1").slide();
    </script>
    <div id="slideTxtBox2">
        <div class="hd">
            <span><a href="/Shop/ShopList">明星店铺</a></span>
        </div>
        <div class="bd">
            <ul>
                <dl style="display: list-item; ">
                    
                    @for (int i = 1; i < Model.ShopList.Count; i++)
                    {
                        <ul class="clearfix ul_list" id=hot3s@{@i}>
                            <span>@i</span>
                            <p class="name">
                                <a href="/Shop/@Model.ShopList[i - 1].ShopName" title="">@Model.ShopList[i - 1].ShopName</a>
                            </p>
                            <div class="ren">关注指数：@Model.ShopList[i - 1].CostValue</div>
                        </ul>
                    }
                </dl>
            </ul>
        </div>
    </div>

</div>

